﻿<%@ Page Language="C#" MasterPageFile="~/admin/AdminTemplate.master" AutoEventWireup="true" CodeFile="Managemember.aspx.cs" Inherits="admin_Managemember" Title="Admin" UICulture="vi" %>

<%@ Register Assembly="DevExpress.Web.ASPxGridView.v7.2, Version=7.2.2.0, Culture=neutral, PublicKeyToken=9b171c9fd64da1d1"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dxwgv" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v7.2, Version=7.2.2.0, Culture=neutral, PublicKeyToken=9b171c9fd64da1d1"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dxe" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:Panel ID="Panel1" runat="server" ForeColor="White" GroupingText="Thông tin thành viên" Height="100%" HorizontalAlign="Center" Width="95%">
        <dxwgv:ASPxGridView ID="ASPxGridView1" runat="server" AutoGenerateColumns="False"
            Width="95%" KeyFieldName="UserID" OnCustomUnboundColumnData="ASPxGridView1_CustomUnboundColumnData">
            <Columns>
                <dxwgv:GridViewDataTextColumn Caption="#" FieldName="UserID" VisibleIndex="0">
                </dxwgv:GridViewDataTextColumn>
                <dxwgv:GridViewDataTextColumn Caption="T&#234;n" FieldName="UserName" VisibleIndex="1">
                    <Settings AutoFilterCondition="Contains" />
                </dxwgv:GridViewDataTextColumn>
                <dxwgv:GridViewDataTextColumn Caption="Giới t&#237;nh" FieldName="gen" VisibleIndex="2" UnboundType="String">
                    <Settings FilterMode="DisplayText" AutoFilterCondition="Contains" />
                </dxwgv:GridViewDataTextColumn>
                <dxwgv:GridViewDataTextColumn Caption="Email" FieldName="Email" VisibleIndex="3">
                    <Settings AutoFilterCondition="Contains" />
                </dxwgv:GridViewDataTextColumn>
                <dxwgv:GridViewDataTextColumn Caption="Vai tr&#242;" FieldName="rol" VisibleIndex="4" UnboundType="String">
                    <Settings AutoFilterCondition="Contains" FilterMode="DisplayText" />
                </dxwgv:GridViewDataTextColumn>
                <dxwgv:GridViewDataTextColumn Caption="Trạng th&#225;i" FieldName="statu" VisibleIndex="5" UnboundType="String">
                    <Settings AutoFilterCondition="Contains" FilterMode="DisplayText" />
                </dxwgv:GridViewDataTextColumn>
                <dxwgv:GridViewDataHyperLinkColumn Caption="#" FieldName="UserID" VisibleIndex="6">
                    <PropertiesHyperLinkEdit NavigateUrlFormatString="Managemember.aspx?userid={0}" Text="Sửa"
                        TextFormatString="Sửa">
                    </PropertiesHyperLinkEdit>
                    <Settings AllowAutoFilter="False" />
                </dxwgv:GridViewDataHyperLinkColumn>
                <dxwgv:GridViewCommandColumn VisibleIndex="7">
                    <ClearFilterButton Visible="True">
                    </ClearFilterButton>
                </dxwgv:GridViewCommandColumn>
            </Columns>
            <Settings ShowFilterRow="True" />
            <SettingsPager PageSize="5">
            </SettingsPager>
        </dxwgv:ASPxGridView>
    </asp:Panel>
  <br />
  <br />
  
    <asp:Panel ID="Panel2" runat="server" ForeColor="White" GroupingText="Sửa thông tin thành viên" Height="100%" Visible="False" Width="95%">
        <table width="95%">
            <tr>
                <td style="width: 191px; text-align: left">
                    Tên thành viên:</td>
                <td style="text-align: left; width: 236px;">
                    <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label></td>
            </tr>
            <tr>
                <td style="width: 191px; text-align: left">
                    Giới tính :</td>
                <td style="text-align: left; width: 236px;">
                    <asp:Label ID="Label3" runat="server" Text="Label"></asp:Label></td>
            </tr>
            <tr>
                <td style="width: 191px; text-align: left">
                    Địa chỉ :</td>
                <td style="text-align: left; width: 236px;">
                    <asp:TextBox ID="TextBox1" runat="server" Columns="10" ReadOnly="True" Rows="3" TextMode="MultiLine"
                        Width="203px"></asp:TextBox></td>
            </tr>
            <tr>
                <td style="width: 191px; text-align: left">
                    Số điện thoại :</td>
                <td style="text-align: left; width: 236px;">
                    <asp:Label ID="Label5" runat="server" Text="Label"></asp:Label></td>
            </tr>
            <tr>
                <td style="width: 191px; height: 21px; text-align: left">
                    Email :</td>
                <td style="height: 21px; text-align: left; width: 236px;">
                    <asp:Label ID="Label6" runat="server" Text="Label"></asp:Label></td>
            </tr>
            <tr>
                <td style="width: 191px; text-align: left">
                    Email 2 :</td>
                <td style="text-align: left; width: 236px;">
                    <asp:Label ID="Label7" runat="server" Text="Label"></asp:Label></td>
            </tr>
            <tr>
                <td style="width: 191px; height: 21px; text-align: left">
                    Số CMND :</td>
                <td style="height: 21px; text-align: left; width: 236px;">
                    <asp:Label ID="Label8" runat="server" Text="Label"></asp:Label></td>
            </tr>
            <tr>
                <td style="width: 191px; height: 21px; text-align: left">
                    Tài khoản :</td>
                <td style="height: 21px; text-align: left; width: 236px;">
                    <asp:Label ID="Label9" runat="server" Text="Label"></asp:Label></td>
            </tr>
            <tr>
                <td style="width: 191px; text-align: left">
                    Quyền :</td>
                <td style="text-align: left; width: 236px;">
                    <asp:DropDownList ID="DropDownList2" runat="server">
                        <asp:ListItem Value="0">Admin</asp:ListItem>
                        <asp:ListItem Value="1">Th&#224;nh vi&#234;n</asp:ListItem>
                        <asp:ListItem Value="2">Tư Vấn Vi&#234;n</asp:ListItem>
                    </asp:DropDownList></td>
            </tr>
            <tr>
                <td style="width: 191px; text-align: left">
                    Trạng thái :</td>
                <td style="text-align: left; width: 236px;">
                    <asp:DropDownList ID="DropDownList1" runat="server" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged">
                        <asp:ListItem Value="0">Đang offline</asp:ListItem>
                        <asp:ListItem Value="1">Đang online</asp:ListItem>
                        <asp:ListItem Value="2">Đang bận</asp:ListItem>
                        <asp:ListItem Value="3">Kh&#243;a</asp:ListItem>
                    </asp:DropDownList></td>
            </tr>
            <tr>
                <td style="width: 191px; height: 47px; text-align: left">
                    <asp:HiddenField ID="HiddenField1" runat="server" />
                </td>
                <td style="height: 47px; text-align: left; width: 236px;">
                    <asp:CheckBox ID="CheckBox1" runat="server" OnCheckedChanged="CheckBox1_CheckedChanged"
                        Text=" * Đã kiểm tra để sửa" />
                    <br />
                    <br />
                    <asp:Label ID="Label2" runat="server" ForeColor="Red" Text="* Phải đánh vào ô check "></asp:Label></td>
            </tr>
            <tr>
                <td style="width: 191px; text-align: left">
                </td>
                <td style="text-align: left; width: 236px;">
                    <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Sửa" Width="99px" /></td>
            </tr>
        </table>
    </asp:Panel>
</asp:Content>

